package demo1210.am;

public class Circle extends Shape {
    private int r;

    public Circle(int r) {
        this.r = r;
    }

    public Circle() {
    }

    @Override
    public double area() {
        return 3.14*r*r;
    }

    @Override
    public double length() {
        return 2*3.14*r;
    }
}
